package com.hbx.dto.pk;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/*
 * @Author:hbx
 * 
 * */
@Data
public class InsertPkDto {

    @NotBlank(message = "pk标题为必填项")
    private String pkTitle;

    @NotBlank(message = "pk内容为必填项")
    private String pkContent;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束时间为必填项")
    private Date pkEndTime;
}
